﻿#ifndef FILEFUNCTION_H
#define FILEFUNCTION_H

#include <QObject>
#include <QFileInfo>
#include <QFileInfoList>
#include <QDir>
#include <vector>
class FileFunction : public QObject
{
    Q_OBJECT
public:
    explicit FileFunction(QObject *parent = nullptr);

    static bool getDirList(QString filePath , QList<QFileInfo> *l_fileList);

    static bool getAllFileInfoList(QString filePath, QList<QFileInfo> *l_fileList);

    static bool isExitFile(QString fileName, QString path);

    static bool isDirExistAndMake(QString path);

    static bool DelDir(const QString &path);

    static bool copyFile(QString srcPath,QString dstPath);

    static bool readSmallFile(QString Path,QByteArray& array);
    std::vector<int > l;

signals:

public slots:
};

#endif 
